#在项目根目录下运行，sh shell/stop.sh

echo "stop  begin........"
pid=`ps ax | grep java | grep -i 'csms-api' | grep -v grep | awk '{print $1}'`
if [ -z "$pid" ] ; then
        echo "No server running."
        #exit -1;

else
    echo "The server(${pid}) is running..."

    kill ${pid}

    echo "Shutdown server(${pid}) OK"
fi
